//
//  DetailTravelModel.m
//  EDPS
//
//  Created by 张维扬 on 15/11/27.
//  Copyright © 2015年 张维扬. All rights reserved.
//

#import "DetailTravelModel.h"

@implementation DetailTravelModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"photo_info"]) {
        self.h = value[@"h"];
        self.w = value[@"w"];
    }
    if ([key isEqualToString:@"location"]) {
        self.latitude = value[@"lat"];
        self.longitude = value[@"lng"];
//        self.latitude = value[@"location"][@"lat"];
//        self.longitude = value[@"location"][@"lng"];
    }
    
}
@end
